<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <!-- 双向绑定 v-model -->
    <!-- 双花括号里的表达式表现方式 -->
    {{ inpValue.split('').reverse().join('') }}
    <input type="text" v-model="inpValue">
  </div>

  <script src="js/vue.js"></script>
  <script>
    var myApp = new Vue({
      el: '#app',
      data: {
        inpValue: ''
      },
      methods: {
        
      }
    })
  </script>
</body>
</html>